import { LogBizId, LogOperation } from '@decorators/logs.decorators';

export interface LogOptions {
  // 业务域
  bizType: string;
  // 动作
  operation: LogOperation | string | ((req: any) => string);
  // 业务主键取值方式
  bizId?: LogBizId | string | ((req: any) => string);
  // 额外字段
  extra?: (req: any) => Record<string, any>;
}
